﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="UserProfile.aspx.vb" Inherits="Web_2._0_BMW___X6_Experts_Web_Application.UserProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .UserProfileAreaA
        {
            height: 250px;
        }
        .UserProfileAreaB
        {
            height: 76px;
        }
        .UserProfileAreaC
        {
            height: 201px;
        }
        .UserProfileAreaC1
        {
            height: 195px;
            width: 915px;
        }
        .UserProfileAreaC2
        {
            height: 173px;
            width: 570px;
        }
        .UserProfileAreaC3
        {
            height: 188px;
            width: 342px;
        }
        .UserProfileAreaC4
        {
            height: 259px;
        }
        .statsMain
        {
            width: 684px;
            height: 50px;
        }
        .discussionsStarted
        {
            width: 245px;
            height: 46px;
            text-align: center;
            margin-bottom: 0px;
        }
        .postsWritten
        {
            width: 220px;
            height: 44px;
        }
        .style2
        {
            font-size: large;
        }
        .postsAdded
        {
            width: 188px;
            height: 45px;
        }
        .profileEditButton
        {
            width: 141px;
            height: 41px;
            text-align: right;
        }
        .galleryAlbum
        {
            width: 111px;
            height: 20px;
        }
        .galleryAlbums
        {
            width: 197px;
            height: 48px;
        }
        .galleryAlbum100
        {
            width: 232px;
            height: 47px;
            text-align: right;
        }
        .style3
        {
            float: left;
            width: 188px;
            height: 45px;
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="mainUserProfile">
<div class="UserProfileAreaA" style="font-size: large">
&nbsp;
    <br />
    <div class = "profileEditButton">
    
    
        <asp:Button ID="Button1" runat="server" BackColor="#FFCC00" Height="35px" 
            style="text-align: center" Text="Edit Profile" Width="139px" 
            Font-Bold="True" PostBackUrl="~/UserProfileEdit.aspx" />
    
    
        <br />
    
    
        <br />
        <br />
    
    
        <br />
        <br />
    
    
    </div>
&nbsp;<asp:Image ID="imgprofilepicture" runat="server" Height="200px" Width="322px" 
        BorderStyle="Solid"/>
        &nbsp;&nbsp;&nbsp;
        Welcome
        <asp:Label ID="lblfirstname" runat="server" Font-Bold="True" Text="Label" 
        Font-Size="X-Large"></asp:Label>
&nbsp;<asp:Label ID="lbllastname" runat="server" Font-Bold="True" Text="Label" 
        Font-Size="X-Large"></asp:Label>



    <br />

    

</div>

<div class ="UserProfileAreaB" style="font-size: medium; font-weight: bold;">


    Registered Since.&nbsp;
        <asp:Label ID="lblregistrationdate" runat="server" Text="Label" 
        ForeColor="#3366FF"></asp:Label>

        <div class = "statsMain">
        <div class = "style3">
         
         
         
            <asp:Label ID="Label2" runat="server" CssClass="style2" 
                Text="Posts Added:"></asp:Label>
            &nbsp;
            <asp:Label ID="lblpostsAdded" runat="server" CssClass="style2" 
                style="color: #0000FF" Text="Label"></asp:Label>
        

        
            <br />
            <asp:Button ID="btnuserPostsAdded" runat="server" BackColor="#E8F3FF" 
                BorderColor="#E8F3FF" BorderStyle="None" Font-Bold="True" Font-Size="Medium" 
                ForeColor="#3399FF" Text="My Posts" Width="171px" />
        

        
         </div>

        <div class = "discussionsStarted">
        

        
            <asp:Label ID="Label1" runat="server" CssClass="style2" 
                Text="Discussions Added: "></asp:Label>
            &nbsp;<asp:Label ID="lbldiscussionsadded" runat="server" CssClass="style2" 
                style="color: #0000FF" Text="Label"></asp:Label>
        

        
            <br />
            <asp:Button ID="btnuserDiscussionsAdded" runat="server" BackColor="#E8F3FF" 
                BorderColor="#E8F3FF" BorderStyle="None" Font-Bold="True" Font-Size="Medium" 
                ForeColor="#3399FF" Text="My Discussions" Width="171px" />
        

        
        </div>
        
        
         
       
        
                 
        <div class = "galleryAlbum100">
        
            <asp:Image ID="Image1" runat="server" Height="45px" 
                ImageUrl="~/Pictures/gallery_icon.png" Width="54px" />
            <asp:Button ID="Button2" runat="server" BackColor="#E8F3FF" 
                BorderColor="#E8F3FF" BorderStyle="None" Font-Bold="True" Font-Size="Medium" 
                ForeColor="#3399FF" Text="My Gallery Uploads" Width="171px" />
            </div>
        
        
        </div>
</div>

<div class="UserProfileAreaC">

<div class="UserProfileAreaC1">

<div class="UserProfileAreaC2" style="font-size: medium; font-weight: bold">
    <p style="text-decoration: underline; font-size: large; font-weight: bold;">About Me</p>
    
    &nbsp;<asp:TextBox 
        ID="txtaboutme" runat="server" BorderColor="Silver" BorderStyle="None" 
        Enabled="False" Font-Bold="True" Font-Size="Medium" ForeColor="#3366FF" 
        Height="146px" ReadOnly="True" Width="560px" Wrap="true" 
        TextMode="MultiLine" Font-Names="Calibri"></asp:TextBox>
    
    </div>
    <div class="UserProfileAreaC3" style="font-size: medium; font-weight: bold">
        <p style="text-decoration: underline; font-size: large;">
            Basic Information</p>
        Lives in&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <asp:Label ID="lblcity" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
        <br />Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblgender" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
        <br />Birthday&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lbldob" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
        <br />
    </div>



</div>

</div>

<div class = "UserProfileAreaC4">

<div class="UserProfileAreaC4a" 
        style="font-size: medium; font-weight: bold; width: 574px; height: 260px;">
    <p style="text-decoration: underline; font-size: large; font-weight: bold;">My 
        Experience in X6 Cars</p>
    <asp:TextBox ID="txtexperience" runat="server" BackColor="#E3F2FF" 
        BorderStyle="None" Height="92px" ReadOnly="True" Width="565px" Wrap="true" 
        TextMode="MultiLine" Enabled="False" Font-Bold="True" Font-Names="Calibri" 
        Font-Size="Medium" ForeColor="#3366FF" BorderColor="Silver"></asp:TextBox>
        <br />
    <br />
    Maximum Speed Driven (MPH):&nbsp;&nbsp;&nbsp;&nbsp; 
        <asp:Label ID="lblmaxspeeddriven" runat="server" Text="Label" 
        ForeColor="#3366FF"></asp:Label>
    <br />
    Prefered Fuel Type:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblpreferedfuel" runat="server" Text="Label" 
        ForeColor="#3366FF"></asp:Label>
        <br />
    Prefered Litre:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblpreferedlitre" runat="server" Text="Label" 
        ForeColor="#3366FF"></asp:Label>
    <br />
    Favourite Colour:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblfavouritecolour" runat="server" Text="Label" 
        ForeColor="#3366FF"></asp:Label>
    <br />
    <br />
    
    </div>

<div class="UserProfileAreaC4b" 
        style="font-size: medium; font-weight: bold; height: 254px; width: 342px;">
    <p style="text-decoration: underline; font-size: large;">Personal Information</p>
    Address.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lbladdress1" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:Label ID="lbladdress2" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:Label ID="lbltown" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; 
        <asp:Label ID="lblcity2" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:Label ID="lblpostcode" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
    <br />
    Tel No.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lbltelno" runat="server" Text="Label" ForeColor="#3366FF"></asp:Label>
        <br />
    <br />
</div>

</div>

    <p>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [Username], [Email], [Title], [FirstName], [LastName], [DOB], [Address1], [Address2], [Town], [City], [Postcode], [TelNo], [AboutMe], [RegistrationDate], [X6CarsDriven], [FavouriteColour], [MaxSpeedDriven], [PreferedFuel], [PreferedLitre], [UserImage], [Gender] FROM [UserProfile]"></asp:SqlDataSource>
    </p>
        <p>
        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
                SelectCommand="SELECT COUNT(PostID) AS [Posts Added], UserIDFK FROM Posts GROUP BY UserIDFK"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT COUNT(DiscussionID) AS [Discussions Added], UserIDFK FROM Discussion GROUP BY UserIDFK



"></asp:SqlDataSource>
    </p>
    </div>

</asp:Content>
